﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.Message
{
	/// <summary>
	/// 实体类
	/// </summary>
	/// <![CDATA[2014-9-30 10:51:14]]>
	public class Entity : EntityBase
	{
		#region 属性
		public string strPersonName = "";		// 姓名
		public string strEMail = "";		// 电子邮箱
		public string strPhone = "";		// 联系电话
		public string strContent = "";		// 留言内容
		public string strAnswer = "";		// 回复
		public string strMessageDateTime = "";		// 留言时间
		public string strAnswerDateTime = "";		// 回复时间
		public int nState = 0;		// 留言状态

		public Config clsConfig = new Config();
		#endregion 属性

		#region Get、Set属性
		/// <summary>
		/// 留言状态
		/// </summary>
		public string StateName
		{
			get
			{
				return clsConfig.strArrMessageState[nState];
			}
		}
		/// <summary>
		/// 留言状态
		/// </summary>
		public int State
		{
			get { return nState; }
			set { nState = value; }
		}
		/// <summary>
		/// 回复时间
		/// </summary>
		public string AnswerDateTime
		{
			get { return strAnswerDateTime; }
			set { strAnswerDateTime = value.Trim(); }
		}
		/// <summary>
		/// 留言时间
		/// </summary>
		public string MessageDateTime
		{
			get { return strMessageDateTime; }
			set { strMessageDateTime = value.Trim(); }
		}
		/// <summary>
		/// 回复
		/// </summary>
		public string Answer
		{
			get { return strAnswer; }
			set { strAnswer = value.Trim(); }
		}
		/// <summary>
		/// 留言内容
		/// </summary>
		public string Content
		{
			get { return strContent; }
			set { strContent = value.Trim(); }
		}
		/// <summary>
		/// 联系电话
		/// </summary>
		public string Phone
		{
			get { return strPhone; }
			set { strPhone = value.Trim(); }
		}
		/// <summary>
		/// 电子邮箱
		/// </summary>
		public string EMail
		{
			get { return strEMail; }
			set { strEMail = value.Trim(); }
		}
		/// <summary>
		/// 姓名
		/// </summary>
		public string PersonName
		{
			get { return strPersonName; }
			set { strPersonName = value.Trim(); }
		}
		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 实体类构造函数
		/// </summary>
		/// <![CDATA[2014-9-30 10:51:14]]>
		public Entity()
			: base()
		{
		}
		#endregion 构造函数
	}
}
